Sometimes an event handler must have a return value (for example, onMouseOver="window.status='This is a link'; return true"
). But if Dreamweaver inserts "return behaviorName(args)"
into the event handler, behaviors later in the list are skipped.
To get around this limitation, set a variable called document.MM_returnValue
to the desired return value within the string returned by behaviorFunction()
. This setting causes Dreamweaver to insert return document.MM_returnValue
at the end of the list of actions in the event handler. See the Validate Form.js file in the Configuration/Behaviors/Actions folder within the Dreamweaver application folder for an example of the use of MM_returnValue
.